package com.gl.emms.whale.ui;

import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.view.Window;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.gl.emms.whale.R;
import com.gl.emms.whale.app.WhaleMonitorActivity;

/**关于软件界面
 * @author ganlinux
 *
 */
public class AboutSoftActivity extends WhaleMonitorActivity implements OnClickListener{
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);// 去掉标题栏
		setContentView(R.layout.activity_aboutsoft);
		initViews();
	}
	/**初始化界面函数
	 * @time 2014年11月13日下午12:32:56
	 * @return void
	 * @user ganlinux
	 */
	@Override
	public void initViews() {
		Button titleBackBtn = (Button)findViewById(R.id.TitleBackBtn);  
        titleBackBtn.setOnClickListener(this);
	}
	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch (v.getId()) {
		case R.id.TitleBackBtn://返回
			new KeyEvent(KeyEvent.ACTION_DOWN,KeyEvent.KEYCODE_BACK);
            finish();
			break;
		default:
			break;
		}
	}
}
